package com.huabo.system.mysql.mapper;

import com.huabo.system.mysql.entity.TblControlmatrixMySql;
import com.huabo.system.mysql.entity.TblFlowMatrixMySql;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TblControlmatrixMySqlMapper extends tk.mybatis.mapper.common.Mapper<TblControlmatrixMySql> {

    @Select("select * from TBL_CONTROLMATRIX where CONMATID = #{tcmId}")
    List<TblControlmatrixMySql> findBysql(String tcmId);

    @Insert("insert into TBL_FLOW_MATRIX (FLOWID,CONMATID) values (#{flowid},#{conmatid})")
    void insertMatrixZJ(TblFlowMatrixMySql flowMatrixMySql);
}
